<!--
 * @description: 
 * @Author: jhw
 * @Date: 2023-05-13 20:17:50
 * @LastEditors: jhw
 * @LastEditTime: 2023-05-13 23:45:49
-->
<template>
  <div>
    <CustomTable :table-data="data">
      <template #test>
        <div>html结构2</div>
      </template>
    </CustomTable>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue';
import CustomTable from '../../components/CustomTable/index.vue';
type Table = {
  name: string | number;
  value: string | number;
  slotName: string;
  interval: number;
  hold: number;
};

const data = ref([
  {
    name: '名称11',
    value: '1111111111111111111111111111111111111111111111111111111111111111111111111111111',
    interval: 3,
    hold: 1,
    slotName: 'test',
  },
  {
    name: '名称',
    value: '你的名字',
    interval: 3,
    hold: 2,
  },
  {
    name: '名称',
    value: 111,
    interval: 1,
    hold: 1,
  },
] as Table[]);
</script>
